package org.acme.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.List;


/***
 *
 * 评审项目
 */
@Data
@TableName(value = "sys_review")
public class SysReview implements Serializable {

    //主键
    @TableId(type = IdType.ASSIGN_ID)
    private String id;

    //父节点名称
    @TableField(value = "name")
    private String name;

    //父节点id
    @TableField(value = "pid")
    private String pid;

    //类型
    @TableField(value = "type")
    private String type;

    //表单正文
    @TableField(value = "context")
    private String context;

    //子节点
    private transient List<SysReview> children = new ArrayList<>();
}
